#ifndef __DB_H__
#define __DB_H__

#define DB_OK                           0
#define DB_ERROR                        9999
#define DB_NOTFOUND                     1403
#define DB_KEYDUPLICATE                 -1

#define DBS_SELECT                      0
#define DBS_LOCK                        1
#define DBS_UPDATE                      2
#define DBS_INSERT                      3
#define DBS_DELETE                      4
#define DBS_INIT                        5

#define DBS_OPEN                        10
#define DBS_FETCH                       11
#define DBS_CLOSE                       12

typedef struct
{
        double                  no;
        char                    upd_ts[15];
        char                    name[21];
        char                    duty[2];
        int                     age;
        double                  salary;
} emp_t;

typedef struct
{
        double                  no;
        char *                  resume;
} resume_t;

#endif
